package com.leather.quan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leather.common.entity.Quan;
import com.leather.common.result.Result;
import com.leather.quan.vo.QuanVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


public interface QuanService extends IService<Quan> {

    /**
     * 发表校园圈
     * @param quanVo
     * @return
     */
    Result addQuan(QuanVo quanVo);

    //Result quanIndex();

    Result addQuanWithMutiImage(QuanVo quanVo, List<MultipartFile> files);


    /**
     * 删除动态
     * @param quanId
     * @return
     */
    Result deleteQuan(int quanId,int userId);

    /**
     * 点赞
     * @param quanId
     * @return
     */
    Result touchStar(int quanId);


    /**
     * 首页动态
     * @return
     */
    Result getIndexData(int pageId);


    /**
     * 根据userId获取用户圈子内容
     * @param pageId
     * @param userId
     * @return
     */
    Result getQuanByUserId(int pageId,int userId);

    /**
     * 获取帖子详情
     * @param quanId
     * @return
     */
    Result getQuanDetail(int quanId);

    /**
     * 搜索圈子结果
     * @param searchValue
     * @return
     */
    Result searchQuan(String searchValue);


}
